package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
* @author :Beyond🎸🎸
* @date : 2025-10-24 20:07:21
* @description
* ${description}
**/
/**
 * 商品附件表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_prod_file")
public class ProdFile implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "file_id", type = IdType.AUTO)
    private Integer fileId;

    /**
     * 商品id
     */
    @TableField(value = "prod_id")
    @NotNull(message = "商品不能为空")
    private Integer prodId;

    /**
     * 轮播图片
     */
    @TableField(value = "carousel_images")
    @NotBlank(message = "图片不能为空")
    private String carouselImages;

    /**
     * 轮播视频
     */
    @TableField(value = "carousel_video")
    @NotBlank(message = "视频不能为空")
    private String carouselVideo;

    /**
     * 上架标识0立即上架1定时上架
     */
    @TableField(value = "up_flag")
    @NotNull(message = "上架时间不能为空")
    private Integer upFlag;

    /**
     * 定时上架时间
     */
    @TableField(value = "up_time")
    private Date upTime;

    /**
     * 下架标识0立即下架1定时下架
     */
    @TableField(value = "down_flag")
    private Integer downFlag;

    /**
     * 定时下架时间
     */
    @TableField(value = "down_time")
    private Date downTime;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(value = "update_by")
    private Integer updateBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}